﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="RecordList.aspx.cs" Inherits="WebSystem.User.RecordList" %>


<%@ Register Assembly="System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"
    Namespace="System.Web.UI" TagPrefix="asp" %>


<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
    <title>用户组管理</title>
</head>
<body style="background-color:#fcf6ec">
    <form id="form1" runat="server">
    <div>
            <%--<asp:ScriptManager ID="ScriptManager1" runat="server">
            </asp:ScriptManager>
            <asp:UpdatePanel ID="UpdatePanel1" runat="server">
                <ContentTemplate>--%>
                <div style="text-align:center">
                <h1>用户组管理</h1></div>
                <div style="text-align:center">
                    <asp:GridView ID="gvShow" runat="server" AutoGenerateColumns="false" OnRowCommand="gvShow_RowCommand"
                        OnRowDataBound="gvShow_RowDataBound" OnRowCreated="gvShow_RowCreated">
                        <Columns>
                            <asp:TemplateField HeaderText="选择">
                                <HeaderStyle Width="100px" />
                                <ItemStyle HorizontalAlign="Center" />
                                <ItemTemplate>
                                    <asp:CheckBox ID="CheckBoxItem" runat="server" />
                                </ItemTemplate>
                            </asp:TemplateField>
                            <asp:TemplateField HeaderText="序号" Visible="false">
                                <ItemTemplate>
                                    <asp:Label ID="lblID" runat="server" Text='<%# Eval("GroupID") %>'></asp:Label></ItemTemplate>
                            </asp:TemplateField>
                            <asp:TemplateField HeaderText="组名称">
                            <ItemStyle HorizontalAlign="left" />
                                <ItemTemplate>
                                    <asp:LinkButton ID="lbtnGroupExpended" CommandName="GroupExpended" runat="server"
                                        Text='<%# Eval("GroupName") %>'></asp:LinkButton></ItemTemplate>
                            </asp:TemplateField>
                            <asp:TemplateField HeaderText="操作">
                            <ItemStyle HorizontalAlign="left" />
                                <ItemTemplate>
                                    <asp:LinkButton ID="lbtnEdit" CommandName="Edit" runat="server"
                                        Text="修改"></asp:LinkButton></ItemTemplate>
                            </asp:TemplateField>
                        </Columns>
                    </asp:GridView>
                    <br />
                    <asp:CheckBox ID="cbxAll" runat="server" OnCheckedChanged="cbxAll_CheckedChanged"
                        AutoPostBack="true" />全选
                       <asp:Button ID="btnDel" runat="server" Text="删除" OnClick="btnDel_Click" />
                       <asp:HyperLink ID="lbtnNew" runat="server" Text="新增" NavigateUrl="GroupInsert.aspx" ></asp:HyperLink>
                <%--</ContentTemplate>
            </asp:UpdatePanel>--%></div>
        </div>
    </form>
</body>
</html>
